package com.sample.springbatch.job.sample.writer;

import com.sample.springbatch.job.sample.service.RepayOrderBackToBackPatternClassifier;
import com.sample.springbatch.model.RepayOrderInfo;
import org.springframework.batch.item.support.ClassifierCompositeItemWriter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * Created by zwg on 2017/10/31.
 */
@Component
public class RepayOrderClassifierCompositeItemWriter extends ClassifierCompositeItemWriter<RepayOrderInfo> {

    @Autowired
    RepayOrderBackToBackPatternClassifier repayOrderBackToBackPatternClassifier;



    @PostConstruct
    private void init(){

        this.setClassifier(repayOrderBackToBackPatternClassifier);
    }

}
